Click here to return to the VHDL Reference Guide. (last edit: 24. september 2012)

Return

A sequential statement which causes execution to be returned from a procedure or function.

Syntax

  [Label:] return;                                {in procedure}
  [Label:] return Expression;                     {in function}
    

Where

function-begin--end procedure-begin--end See Sequential Statement

Rules

A function must execute a return statement that returns a value consistent with the return type of the function.

Example

  return A + B;
    

See Also

Function, Procedure, Expression